package com.school.lab.service;

import java.util.List;

import com.school.lab.domain.User;

public interface UserService {
        public void saveUser(User user);
        public void updateUser(User user);
        public void delUser(Long userId);
        public User getUserById(Long userId);
        
        public List<User> findByType(int start,int limit ,int flag, String userType);
        
        public List<User> findByType(int start,int limit ,int flag, String userType,String city,int isTopAdmin);
        public User getUser(String username,String password,String city,String flag);
        
        public List<User> findUser(int start,int limit ,int flag, String roleName,String city,String realName);
        
        public List<User> findUser(int start,int limit ,int flag, String roleName,String city,String realName,String username,String grade);
       
        public User getUser(String username,String password);
        
        public User searchUser(String username,String realName);
        
        public User getByName(String username);
        
}
